package interfaces;

import net.xoetrope.xui.*;
import net.xoetrope.swing.*;

public class UIGerirReclamacoes extends XPage
{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;


	public UIGerirReclamacoes()
	{
	}

	public void pageCreated(){
		setExceptionHandler(new ExceptionHandler(this));
		((XPanel)findComponent("p_detalhe")).setVisible(false);
		((XPanel)findComponent("panel_gp")).setVisible(true);
	}

	public void listarTodos()
	{
		if ( wasMouseClicked() ){

		}
	}


	public void pesquisarColuna()
	{if ( wasMouseClicked() ){

	}

	}


	public void adicionarReclamacao()
	{
		if ( wasMouseClicked() ){
			((XPanel)findComponent("p_detalhe")).setVisible(true);
			((XPanel)findComponent("panel_gp")).setVisible(false);
		}

	}


	public void apagarReclamacao()
	{
		if ( wasMouseClicked() ){

		}

	}


	public void editarReclamacao()
	{
		if ( wasMouseClicked() ){
			((XPanel)findComponent("p_detalhe")).setVisible(true);
			((XPanel)findComponent("panel_gp")).setVisible(false);
		}

	}




	public void cancelarReclamacao()
	{if ( wasMouseClicked() ){
		((XPanel)findComponent("p_detalhe")).setVisible(false);
		((XPanel)findComponent("panel_gp")).setVisible(true);
	}

		
	}


	public void guardarReclamacao()
	{
		if ( wasMouseClicked() ){
			((XPanel)findComponent("p_detalhe")).setVisible(false);
			((XPanel)findComponent("panel_gp")).setVisible(true);
		}

	}

}
